package com.ruoyi.performance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performance.mapper.TPerformanceAssessMapper;
import com.ruoyi.performance.domain.TPerformanceAssess;
import com.ruoyi.performance.service.ITPerformanceAssessService;

/**
 * 绩效管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
@Service
public class TPerformanceAssessServiceImpl implements ITPerformanceAssessService
{
    @Autowired
    private TPerformanceAssessMapper tPerformanceAssessMapper;

    /**
     * 查询绩效管理
     * 
     * @param id 绩效管理主键
     * @return 绩效管理
     */
    @Override
    public TPerformanceAssess selectTPerformanceAssessById(Long id)
    {
        return tPerformanceAssessMapper.selectTPerformanceAssessById(id);
    }

    /**
     * 查询绩效管理列表
     * 
     * @param tPerformanceAssess 绩效管理
     * @return 绩效管理
     */
    @Override
    public List<TPerformanceAssess> selectTPerformanceAssessList(TPerformanceAssess tPerformanceAssess)
    {
        return tPerformanceAssessMapper.selectTPerformanceAssessList(tPerformanceAssess);
    }

    /**
     * 新增绩效管理
     * 
     * @param tPerformanceAssess 绩效管理
     * @return 结果
     */
    @Override
    public int insertTPerformanceAssess(TPerformanceAssess tPerformanceAssess)
    {
        return tPerformanceAssessMapper.insertTPerformanceAssess(tPerformanceAssess);
    }

    /**
     * 修改绩效管理
     * 
     * @param tPerformanceAssess 绩效管理
     * @return 结果
     */
    @Override
    public int updateTPerformanceAssess(TPerformanceAssess tPerformanceAssess)
    {
        return tPerformanceAssessMapper.updateTPerformanceAssess(tPerformanceAssess);
    }

    /**
     * 批量删除绩效管理
     * 
     * @param ids 需要删除的绩效管理主键
     * @return 结果
     */
    @Override
    public int deleteTPerformanceAssessByIds(Long[] ids)
    {
        return tPerformanceAssessMapper.deleteTPerformanceAssessByIds(ids);
    }

    /**
     * 删除绩效管理信息
     * 
     * @param id 绩效管理主键
     * @return 结果
     */
    @Override
    public int deleteTPerformanceAssessById(Long id)
    {
        return tPerformanceAssessMapper.deleteTPerformanceAssessById(id);
    }

    /**
     * 根据项目名称查询目标值
     * @param projectName
     * @return
     */
    @Override
    public String getGoal(String projectName) {
        return tPerformanceAssessMapper.getGoal(projectName);
    }

    /**
     * 根据项目名称查询详细信息
     * @param projectName
     * @return
     */
    @Override
    public TPerformanceAssess getProjectInfo(String projectName) {
        return tPerformanceAssessMapper.getProjectInfo(projectName);
    }
}
